{if $myuid}
{table table=member_friend touid=$myuid order=inputtime page=1}
{php $user=dr_member_info($t.uid);}
<li class="search-item clearfix">
    <a  href="{dr_hy_url($user.id)}">
        <img src="{$user.avatar}" width="100" height="90" style="margin-top: 15px;">
    </a>
    <div class="search-content text-left">
        <h4 class="search-title">
            {$user.name}
        </h4>
        <p>
            {if $rt = dr_hy_is_friend($user.id, $member.id)}
            <a href="javascript:dr_hy_addfriend('{$user.id}');" class="btn btn-circle2 red btn-outline" id="hy_addfriend_{$user.id}"> {if $rt==1}已关注{else}相互关注{/if} </a>
            {else}
            <a href="javascript:dr_hy_addfriend('{$user.id}');" class="btn btn-circle2 red" id="hy_addfriend_{$user.id}"> 关注TA </a>
            {/if}
        </p>
    </div>
</li>
{/module}
{/if}